﻿<%@ Page Language="C#" AutoEventWireup="true" EnableEventValidation="false" CodeBehind="WF_ExpensesForApproval.aspx.cs" MasterPageFile="~/index.Master" Inherits="xManagerWebApp.__Membership.WF_ExpensesForApproval" %>


<%@ Register src="~/__Membership/UC_ExpenseApprovalControl.ascx" tagname="ExpApprControl" tagprefix="uc1" %>


<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
    <fieldset visible="true" id="DoAction">
        <legend>Selected</legend>        
        <uc1:ExpApprControl ID="ctrExpenseLine" Visible="false" runat="server" />
    </fieldset>
    
    
    <fieldset>
        <legend>Expenses for approval</legend>     
        <asp:Label runat="server" id="no_expenses" visible="false" text="You don't have expenses to approve" />
        
        <asp:Repeater ID="ExpensesForApprovalList" runat="server">
            <HeaderTemplate>
                <div class="clearfix table_head">
                    <div class="span-5">Description</div>
                    <div class="span-3">Employee</div>
                    <div class="span-3">Department Level</div>
                    <div class="span-3">Creation Date</div>
                    <div class="span-2 last">Actions</div>
                </div>
                <div class="clearfix table">
            </HeaderTemplate>
            
            <ItemTemplate>            
                <div class="table_row">
                        <div class="span-5"><%# Eval("Description")%></div>
                        <div class="span-3"><%# Eval("Employee")%></div>
                        <div class="span-3"><%# Eval("DepartmentLevel")%></div>
                        <div class="span-3"><%# Eval("Date")%></div>
                        <div class="span-2 last">                        
                        <asp:Button ID="XXX" runat="server" OnClick="process" 
                        CommandArgument='<%# Eval("ExpenseLineId")+":"+ Eval("DepartmentLevelId") %>' Text="View" />
                        </div>
                </div>            
            </ItemTemplate>
            <FooterTemplate></div></FooterTemplate>     
        </asp:Repeater>
        
    </fieldset>
</asp:Content>
    

